// -----------------------------------------------------------------------
// <copyright file="IgnoredService.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//    GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
// -----------------------------------------------------------------------
#region Usings

using System;
using System.ComponentModel;
using System.Xml.Schema;
using System.Xml.Serialization;

#endregion

namespace GateShift.Servers.GameServer.Configuration.Services
{
    /// <summary>
    /// Ignored Service configuration item
    /// </summary>
    [XmlType(TypeName = "ignore")]
    [Serializable]
    public class IgnoredService
    {
        #region CTor/DTor

        /// <summary>
        /// Initializes a new instance of the IgnoredService class
        /// </summary>
        public IgnoredService()
        {
        }

        /// <summary>
        /// Initializes a new instance of the IgnoredService class
        /// </summary>
        /// <param name="service">ServiceName to ignore</param>
        public IgnoredService(string service)
            : this()
        {
            Service = service;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets the name of the service to ignore
        /// </summary>
        [XmlAttribute(AttributeName = "service", Form = XmlSchemaForm.Unqualified, DataType = "string")]
        [EditorBrowsable(EditorBrowsableState.Advanced)]
        public string Service { get; set; }

        #endregion
    }
}